<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" href="{:config('web.cdn')}/favicon.ico">
    <title>用户最爱访问</title>
    <meta name="keywords" content="用户最爱，top榜单，用户搜索，访问">
    <meta name="description" content="根据用户访问，点赞等维度，给出用户最喜欢访问的文章排行榜。">
    {include file="public:head" /}
</head>
<body>
{include file="public:header_nav" /}
<div class="clear"></div>
<br>
<!-- 文章 开始111 -->
<div class="layui-container main">

    <div class="page_left layui-col-md8 layui-col-xs12">

        <h3 class="list_title">
            {if request()->param("keywords")}
            {:request()->param("keywords")}
            {else /}
            文章最Top
            {/if}
            <div class="clear"></div>
            <blockquote class="layui-elem-quote" style="font-size: 14px; font-weight: 200">
                根据用户访问，点赞等维度，给出用户最喜欢访问的文章排行榜。
            </blockquote>
            <div class="clear"></div>
            <div>
                <a href="{:url()}" type="button" class="layui-btn layui-btn-primary">近7日</a>
                <a href="{:url('',['type'=>'today'])}" type="button" class="layui-btn layui-btn-primary">今日</a>
            </div>

        </h3>
        <ul class="page_left_list">
            <br>
            {volist name="list" id="val"}
            {if $val.art}
                <li class="{if !$val.art['prefimg']}no_pic{/if}">
                    <div class="ainfo layui-row">
                        <h2 class="title layui-col-md12 layui-col-xs12 fl pdl15">
                            <a href="{:url('article/read',array('id'=>$val.art['id']))}" {if $val.art.title_style}style="{$val.art.title_style}"{/if}>
                             {$val.art.title}
                            </a>
                        </h2>
                    </div>
                    <span class="layui-col-md2 layui-col-xs6" title="热度" style="padding: 20px;">
                        <i class="layui-icon layui-icon-fire"></i>
                        <span class="cy_cmt_count">{$val.sum_count}</span>
                    </span>
                    <hr class="layui-hide-xs">
                </li>
            {/if}
            {/volist}
        </ul>

        <!--文章分页-单独提出-->
    </div>
    {include file="public:page_right" }
    <div class="clear"></div>
</div>
<!-- 文章 结束 -->

{include file="public/footer"}



